package com.expand.learn.event;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @author zhanghaidong
 * @version v1.0
 * @description
 * @date 2020/3/2
 */
@Component
public class BonusServerListener implements ApplicationListener<UserRegisterEvent> {
    @Override
    public void onApplicationEvent(UserRegisterEvent event) {
        System.out.println("积分服务接到通知，给 " + event.getSource() +
                " 增加积分...");
    }
}
